package com.ruyuan.dfs.client;

/**
 * @description:
 * @Author gckj
 * @Email:
 * @Date: 2024/8/2 16:49
 * @Version 1.0
 */
public class ClientMain {

    public static void main(String[] args) throws Exception {
        DefaultScheduler defaultScheduler = new DefaultScheduler("FSClient-Scheduler-");
        NetClient netClient = new NetClient(defaultScheduler);
        FileTransportClient fileTransportClient = new FileTransportClient(netClient);
        netClient.connect("127.0.0.1",9090);
        netClient.ensureConnected(-1);
        fileTransportClient.sendFile("a.txt","E:\\CPKHDv2.0\\files\\temp\\report-tmp.2024-07-24.160352.json",true);
        fileTransportClient.shutdown();
    }
}
